# Burning

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(Burning)

IF(MSVC)
  ADD_DEFINITIONS(-D_USRDLL)
ENDIF(MSVC)

FILE(GLOB_RECURSE BURNING_SRC ${Burning_SOURCE_DIR} "*.cpp")
FILE(GLOB_RECURSE BURNING_HEADER ${Burning_SOURCE_DIR} "*.h")

LINK_DIRECTORIES(
  ${Burning_SOURCE_DIR}/../../bin
  ${Burning_SOURCE_DIR}/../../Dependencies/Lib)

INCLUDE_DIRECTORIES(
  ${Burning_SOURCE_DIR}/../../src/Framework
  ${Burning_SOURCE_DIR}/../../Dependencies/Include)

ADD_EXECUTABLE(Burning WIN32 ${BURNING_SRC} ${BURNING_HEADER})

TARGET_LINK_LIBRARIES(Burning myframework)

SET(EXECUTABLE_OUTPUT_PATH ${GLOBAL_OUTPUT_PATH})
SET(LIBRARY_OUTPUT_PATH ${GLOBAL_OUTPUT_PATH})

IF(MSVC)
  SET_TARGET_PROPERTIES(loadmodel PROPERTIES PREFIX "../")
  SET_TARGET_PROPERTIES(loadmodel PROPERTIES IMPORT_PREFIX "../")
ENDIF(MSVC)
